﻿@page "/"
@namespace AntDesign.Docs.Server.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Ant Design of Blazor</title>
    <base href="~/" />
    <link rel="icon" href="logo.png" type="image/x-icon">
    @*<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet">*@
    <link rel="preconnect" href="https://C9UTAZSOWW-dsn.algolia.net" crossorigin />
    <link rel="stylesheet" href="@("https://unpkg.com/@docsearch/css@3.0.0/dist/style.css")" />
    <link href="_content/AntDesign.Docs/css/docs.default.css" rel="stylesheet">
</head>
<body>
    <app>
        <component type="typeof(App)" render-mode="ServerPrerendered" />
    </app>
    @{
#if NET5_0_OR_GREATER
        var polyfillPath = "_framework/blazor.polyfill.min.js";
#else
        var polyfillPath = "https://cdn.jsdelivr.net/gh/Daddoon/Blazor.Polyfill@3.0.8/Publish/Blazor.Polyfill.Publish/blazor.polyfill.min.js";
#endif
#if NET6_0
        var isNET6 = true;
#else
        var isNET6 = false;
#endif
        if (isNET6)
        {
            <script src="https://polyfill.io/v3/polyfill.min.js?features=ResizeObserver"></script>
        }
    }
    <script src="@polyfillPath"></script>    
    <script src="_content/AntDesign.Charts/g2plot.js"></script>
    <script src="_content/AntDesign.Charts/ant-design-charts-blazor.js"></script>
    <script src="_content/AntDesign/js/ant-design-blazor.js"></script>
    <script src="_content/AntDesign.Docs/js/prism.js"></script>
    <script src="_framework/blazor.server.js"></script>
    <script>
        window.AntDesign.Prism = {};
        window.AntDesign.Prism.highlight = function (code, language) {
            return Prism.highlight(code, Prism.languages[language], language);
        }

        window.AntDesign.Prism.highlightAll = function () {
            Prism.highlightAll();
        }
    </script>
    <script src="@("https://unpkg.com/@docsearch/js@3.0.0/dist/umd/index.js")"></script>
    <script src="_content/AntDesign.Docs/js/docsearch.js"></script>
    @if (!isNET6)
    {
        <script src="https://polyfill.io/v3/polyfill.min.js?features=ResizeObserver"></script>
    }
</body>
</html>
